//
//  MYZoomView.h
//  JQLive
//
//  Created by Bruce on 2020/3/17.
//  Copyright © 2020 mlqk. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface MYZoomView : UIScrollView

//内容视图
@property (strong, nonatomic) UIView *zoomedView;

//缩放视图原始尺寸
@property (nonatomic) CGSize zoomedViewSize;

//双击时放大或者缩小
@property (readonly,nonatomic) UITapGestureRecognizer *tapGestureRecognizer;

//禁止缩放
@property (nonatomic) BOOL canZoomed;

//恢复到常状
- (void)normal;

//缩放图片
- (void)zoomImage:(UIImage *)image;

//缩放网络图片
- (void)zoomImageWithURLString:(NSString *)urlString;

- (void)zoomImageWithURLString:(NSString *)urlString placeholderImage:(UIImage *)image;

@property(nonatomic, copy) void (^singleClickBlock)(void);
@property(nonatomic, copy) void (^loadImageBlock)(UIImage *image);

@end

NS_ASSUME_NONNULL_END
